#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: all.sh
# Description: 
#       am: activity manager   
# Edit History: 
#   2010-12-01    File created.
#========================================================================

#send SMS to 1234567890, message "ohai", 
am start -a android.intent.action.SENDTO -d sms:1234567890 --es sms_body ohai --ez exit_on_sent true

#To identify the activity you use package_name/class_name, again as per the content of AndroidManifest.xml.
#So a command-line to start a Torch example application might look like:
adb –d shell am start –a android.intent.action.MAIN -n com.blong.Torch/com.blong.torch.MainActivity

adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n package_name/class_name

adb -e shell pm list packages
#Using the -f command adds into the list the path on the device to the package file name 
adb -e shell pm list packages -f


